//
//  ClasstfyCollectionViewCell.m
//  Happy Kitchen
//
//  Created by 冫柒Yun on 15/3/7.
//  Copyright (c) 2015年 mac_chen. All rights reserved.
//

#import "ClasstfyCollectionViewCell.h"

@implementation ClasstfyCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubviews];
    }
    return self;
}
// 布局子视图
- (void)addSubviews
{
    self.classifyImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
    
    // 打开用户交互
    self.classifyImageView.userInteractionEnabled = YES;
    
    
    [self.contentView addSubview:self.classifyImageView];
    
    
    
    self.cateLable = [[UILabel alloc] initWithFrame:CGRectMake(self.classifyImageView.frame.origin.x, self.classifyImageView.frame.origin.y + 105, 100, 20)];
    
    self.cateLable.font = [UIFont systemFontOfSize:15];
    self.cateLable.textAlignment = NSTextAlignmentCenter;
    
    [self.contentView addSubview:self.cateLable];
    
}


@end
